import {isWeiXin,towxurl,tovueurl} from '../config/common.js'
//判断是否登录
export let hasuid = function(){

	if(isWeiXin()){
		var wxloginurl=tovueurl('#/wxlogin')
		wxloginurl=encodeURIComponent(wxloginurl)
		var gotourl=`http://u.mysun365.com/UserCenter/chat/simpleAcsAuth.jsp?sysType=ADCARD&logValue=wd192xd129&gotoUrl=`+wxloginurl+`&scope=snsapi_base`
		location.href=gotourl
	}
	else{
		// mainView.router.loadPage('login.html')
	}
}
